package com.linln.admin.customer.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Where;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import org.springframework.format.annotation.DateTimeFormat;

import com.linln.common.enums.StatusEnum;
import com.linln.common.utils.StatusUtil;

import lombok.Data;

/**
 * @author 小懒虫
 * @date 2020/04/24
 */
@Data
@Entity
@Table(name="busi_customer")
@EntityListeners(AuditingEntityListener.class)
@Where(clause = StatusUtil.NOT_DELETE)
public class Customer implements Serializable {
    // 主键ID
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;
    // 锁定方
    private Integer employee_src_Id;
    // 跟踪方
    private Integer employee_dst_Id;
    // 客户姓名
    private String customer_name;
    // 年龄
    private Integer age;
    // 性别
    private Integer sex;
    // QQ
    private String qq;
    // 微信
    private String wx;
    // 职业
    private String work;
    // 资金量
    private String money;
    // 客户来源
    private Integer source;
    // 客户状态
    private Integer status ;
    // 备注
    private String comments;
    // 录入日期
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date time;
    
 // 创建时间
    @CreatedDate
    private Date createDate;
}